/**
 * Created by fanweihua on 2016/12/2.
 */
import React from 'react';
import PanelHtml from './panelHtml.js';

const Panel = React.createClass({
    getInitialState: function () {
        return {
            html: PanelHtml.html
        };
    },
    render(){
        return (
            <div className="Z_slideIn">
                <div className="page slideIn">
                    <div className="Z_content_code">
                        <div dangerouslySetInnerHTML={{__html: this.state.html}}></div>
                    </div>
                </div>
                <div className="Z_content">
                    <div className="Z_panel-body-backgound">
                        <PanelNav></PanelNav>
                    </div>
                </div>
            </div>
        )
    }
});
module.exports = Panel;
const PanelNav = React.createClass({
    render(){
        return (
            <div className="Z_panel-body">
                <div className="page__hd">
                    <h1 className="page__title">Panel</h1>
                    <p className="page__desc">面板</p>
                </div>
                <div className="page__bd">
                    <div className="weui-panel weui-panel_access">
                        <div className="weui-panel__hd">图文组合列表</div>
                        <div className="weui-panel__bd">
                            <a href="javascript:void(0);" className="weui-media-box weui-media-box_appmsg">
                                <div className="weui-media-box__hd">
                                    <img className="weui-media-box__thumb"
                                         src=""
                                         alt=""></img>
                                </div>
                                <div className="weui-media-box__bd">
                                    <h4 className="weui-media-box__title">标题一</h4>
                                    <p className="weui-media-box__desc">由各种物质组成的巨型球状天体，叫做星球。星球有一定的形状，有自己的运行轨道。</p>
                                </div>
                            </a>
                            <a href="javascript:void(0);" className="weui-media-box weui-media-box_appmsg">
                                <div className="weui-media-box__hd">
                                    <img className="weui-media-box__thumb"
                                         src=""
                                         alt=""></img>
                                </div>
                                <div className="weui-media-box__bd">
                                    <h4 className="weui-media-box__title">标题二</h4>
                                    <p className="weui-media-box__desc">由各种物质组成的巨型球状天体，叫做星球。星球有一定的形状，有自己的运行轨道。</p>
                                </div>
                            </a>
                        </div>
                        <div className="weui-panel__ft">
                            <a href="javascript:void(0);" className="weui-cell weui-cell_access weui-cell_link">
                                <div className="weui-cell__bd">查看更多</div>
                                <span className="weui-cell__ft"></span>
                            </a>
                        </div>
                    </div>
                    <div className="weui-panel weui-panel_access">
                        <div className="weui-panel__hd">文字组合列表</div>
                        <div className="weui-panel__bd">
                            <div className="weui-media-box weui-media-box_text">
                                <h4 className="weui-media-box__title">标题一</h4>
                                <p className="weui-media-box__desc">由各种物质组成的巨型球状天体，叫做星球。星球有一定的形状，有自己的运行轨道。</p>
                            </div>
                            <div className="weui-media-box weui-media-box_text">
                                <h4 className="weui-media-box__title">标题二</h4>
                                <p className="weui-media-box__desc">由各种物质组成的巨型球状天体，叫做星球。星球有一定的形状，有自己的运行轨道。</p>
                            </div>
                        </div>
                        <div className="weui-panel__ft">
                            <a href="javascript:void(0);" className="weui-cell weui-cell_access weui-cell_link">
                                <div className="weui-cell__bd">查看更多</div>
                                <span className="weui-cell__ft"></span>
                            </a>
                        </div>
                    </div>
                    <div className="weui-panel">
                        <div className="weui-panel__hd">小图文组合列表</div>
                        <div className="weui-panel__bd">
                            <div className="weui-media-box weui-media-box_small-appmsg">
                                <div className="weui-cells">
                                    <a className="weui-cell weui-cell_access" href="javascript:;">
                                        <div className="weui-cell__hd"><img
                                            src=""
                                            alt="" style={{width: "20px", marginRight: "5px", display: "block"}}></img>
                                        </div>
                                        <div className="weui-cell__bd weui-cell_primary">
                                            <p>文字标题</p>
                                        </div>
                                        <span className="weui-cell__ft"></span>
                                    </a>
                                    <a className="weui-cell weui-cell_access" href="javascript:;">
                                        <div className="weui-cell__hd"><img
                                            src=""
                                            alt="" style={{width: "20px", marginRight: "5px", display: "block"}}></img>
                                        </div>
                                        <div className="weui-cell__bd weui-cell_primary">
                                            <p>文字标题</p>
                                        </div>
                                        <span className="weui-cell__ft"></span>
                                    </a>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div className="weui-panel">
                        <div className="weui-panel__hd">文字列表附来源</div>
                        <div className="weui-panel__bd">
                            <div className="weui-media-box weui-media-box_text">
                                <h4 className="weui-media-box__title">标题一</h4>
                                <p className="weui-media-box__desc">由各种物质组成的巨型球状天体，叫做星球。星球有一定的形状，有自己的运行轨道。</p>
                                <ul className="weui-media-box__info">
                                    <li className="weui-media-box__info__meta">文字来源</li>
                                    <li className="weui-media-box__info__meta">时间</li>
                                    <li className="weui-media-box__info__meta weui-media-box__info__meta_extra">其它信息
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        );
    }
});